No research indicates that OCD is the result of a moral or ethical problem, nor is there any way to prove this using science. Science is based on observable and testable facts and experiments. Because we cannot investigate or observe a moral problem, we cannot make an inference that a moral problem is the cause of OCD.
What we can say about morality and OCD is that, at times, OCD can focus on morals or ethics. Some people with OCD fear doing things that are morally or ethically wrong. Some fear offending a higher power, and others are afraid that they will be damned or seen as evil people for their thoughts or actions. Therefore, it is easy for these people to infer that OCD might be related to moral or ethical problems. However, this is just the effect of the OCD obsession with morality; for as many people who have moral or ethical issues related to their OCD, there are even more that have no moral or ethical association with their OCD whatsoever. If OCD were the result of a moral or ethical problem, then all people with OCD would be focused on moral and ethical matters.