If you ‘have’ OCD you have a psychological problem caused by a biochemical imbalance. This can be treated. The people who know how to treat it are medical professionals. You should see one. The religious manifestations of OCD are common among religious people with OCD but not among the irreligious. They are not the cause of the problem. By all means seek religious advice but the main thing is to get professional advice from people trained in diagnosis and treatment of mental illness.
DISCLAIMER: Catholic Answers has turned over the archive to Catholic-Questions.org and no longer owns, manages, or moderates the forums. For additional apologetics resources please visit www.catholic.com.