Developing countries face years of difficulty as global economy slows, UN agency warn