North Yorkshire Police has launched an investigation into a sexual offence committed against a 12-year-old girl.