The year 2024 was the hottest on record, a spokesperson for the World Meteorological Organisation, or WMO, says.