The girl was advised to have sex by a doctor in the therapy session