The outgoing Greater Manchester mayor is lining up a third attempt to be Labour leader following his return to Westminster.