Public investment R&D rose in 2024, according to new ONS data