Prince William has urged leaders from around the world to act with "urgency and purpose" to protect the planet from climate change.