The amount of electricity generated in the UK last year fell to its lowest level in a quarter century, Carbon Brief analysis shows.