Renewable energy is set to rival coal as the main generator of the world's electricity by 2035 as the costs of technology fall and subsidies rise, the International Energy Agency said.