After an investigation lasting two years, TikTok has been fined €345 million for a series of privacy violations relating to the way it handles children’s data.