Decision by former prime minister comes just weeks after he was replaced by Andy Burnham