French retailer Carrefour has posted solid results for its 2024 financial year driven by profitability in its core countries.