Four teenagers have been charged in connection with extortion and assault after a video of a school teacher in Aberdeen was shared on social media.