Carrefour has quit the Swiss market with the sale of its stake in a local retail venture in the country.