Tesco, the UK's largest retailer, has decided to quit Japan after eight years in the market.