The UK’s largest retailer agrees to sell the 2,000 stores it operates in Thailand and Malaysia.