TikTok has been charged with breaching EU online content rules designed to protect children from predators or cyberbullying.