Hong Kong pro-democracy media tycoon Jimmy Lai has been sentenced to 12 months in prison for his activism in one of the biggest anti-Beijing protests in 2019.