Hedge funds cash in as green investors dump energy stocks