Whoever replaces secretary-general António Guterres will take over a cash-strapped and sidelined global institution