Chilean retail giant Cencosud has agreed to buy the Colombian assets of French retailer Carrefour.