A man seen in a viral video being hit in the groin with a brick during the summer’s Southport riots has been jailed.