The number of people convicted for terrorism offences in Britain rose to the highest level since data collection began in 2009, figures published on Thursday showed.