26-year-old Mahdi Mohamud has pleaded guilty to a terrorism offense and three counts of attempted murder after a knife attack at Manchester's Victoria train station on New Year's Eve last year.