The United Nations’ culture agency is warning of twin perils to the historic city from mass tourism and climate change.