Climate change is as dangerous as war, says UN chief