The lure of better pay and thriving opportunities across the finance, tech and consulting sectors has done little to dampen enthusiasm among graduates from the top universities for a career in the public sector, analysis by the Institute for Fiscal Studies has found.