The doctor created a treatment plan for the girl's excessive masturbation