Climate emergency ‘a danger to peace’, top UN official