The US has withdrawn from a climate agreement that helps developing nations, South Africa says