The government has unveiled a new offence of 'violent participation in public demonstrations', among other measures.