Renewables funds attract biggest flows for five years, as focus shifts from climate change to geopolitical crisis