TikTok has been fined €530 million for sending the personal data of users of the social media platform to China unlawfully.