The share of renewables in UK electricity generation was a record 31.7% in the second quarter of 2018, government figures showed today.