Investors must think seriously about selling their shares in fossil fuel backed funds and putting their money in green assets, the UN’s climate chief says.