The prime minister's resignation has fired the starting gun on the race to be in charge of the UK's finances.