Phil Foden's winner at the death snuffs out a resilient Leeds United comeback as Manchester City steal an exhilarating 3-2 victory at home.