Carrefour, the world's second-largest retailer, is mulling whether to leave its headquarters north-west of Paris to save costs.