The UK saw a major shift in electricity generation last year, with coal generation falling 61% from the previous year, gas rising 51% and low-carbon plants reaching record-high output.