A 30-year-old woman presents with new onset of intrusive thoughts about harming her baby, which she finds distressing and ego-dystonic. She avoids being alone with the baby and spends hours checking locks. She has no psychotic symptoms and recognises that the thoughts are unreasonable. What is the most likely diagnosis?