Reasons for hope in a world still on red alert, says UN chief