The record was partly driven by a record high share in solar generation as the UK saw its sunniest spring on record.