The mayors of New York and London have urged leaders of other major global cities to join them in divesting their pension funds from fossil fuel assets.