A Madrid court has opened a secret investigation into TikTok following a complaint by the State Prosecutor's Office regarding child sexual abuse material.