French retail giant Carrefour has said it will buy 127 shopping malls in France, Spain and Italy from real estate group Klepierre for EUR2bn (US$2.75bn).