French retail giant Carrefour has appointed Nestlé veteran Lars Olofsson as its chief executive.