The Department for Work and Pensions’ most senior official has announced he is stepping down this summer.