A police officer has been jailed for nine years after he sexually touched a vulnerable six-year-old girl while responding to a disturbance.