The next UN secretary-general will take charge of an institution under pressure to restore its influence, tackle financial challenges and adapt to a changing world.