Investment into clean energy projects and companies swelled to $174bn in the first half of 2021, with record levels of public market financing offsetting a decline in renewable project investments.