Congolese President Joseph Kabila has agreed to step down after elections next year in power-transfer deal.