Renewable energy generated a record annual percentage of the UK’s electricity last year, statistics published by the Government confirmed.