Meeting the world’s energy supply needs by 2035 will require $40 trillion of investment, as demand grows and production and processing facilities have to be replaced, the International Energy Agency said.