Are there any duas to stop obsessive compulsive disorders like hair-pulling or continuous washing?

Yes the following is recommended:

1- Wipe your hand on your chest then say:

‎بسم الله و بالله محمد رسول الله ، و لا حول و لا قوة إلا بالله العلي العظيم ، اللهم امسح عني ما أحذر

Then wipe your hand on your stomach and say the same prayer 3 times.

2- When you start your salat, with your right index finger, strike your left thigh, then say:

بِسْمِ اللَّهِ وَ بِاللَّهِ، تَوَكَّلْتُ عَلَى اللَّهِ، أَعُوذُ بِاللَّهِ السَّمِيعِ الْعَلِيمِ مِنَ الشَّيْطَانِ الرَّجِيمِ"