Britain produced its cleanest electricity on record last year with output of fossil fuels at an all-time low and renewables reaching a record-high, a study has showed.