The former Labour leader made the announcement just weeks after being replaced by Andy Burnham as prime minister