The UN’s top aid official said on Tuesday he was leaving office at the end of the month with “some important pieces of wisdom” but also a feeling of frustration because many crises no longer make the headlines, while humanitarian operations face a dire lack of funding.