Royal Mail has been fined £21 million by regulator Ofcom over missed delivery targets over the course of the 2024/25 year.