Dame Mary Keegan is stepping down as head of government finance, triggering a contest to win one of the most important accounting jobs in government