A girl with intellectual disabilities told a teacher that her father touched her inappropriately, triggering a criminal investigation, a jury has heard.