TikTok has been fined €530m (£452m) because it was illegally sending user data to China, Ireland's privacy watchdog said on Friday.