French retail giant Carrefour has booked an increase in first-half profits, boosted by a strong rebound in profitability at its domestic business.