Tesco is quitting the world’s two largest economies, but it’s not even secure on home turf