Investors are fleeing clean energy just when the world needs them most