I was reacting to the o.p. saying "for 2 or 3 days." Being naked is no biggie, but not having two or three days at a time to live one's normal life because of this compulsion seems to be an impediment to life. That's why I'm thinking it's OCD-related; when a person wants to stop something but can't bring themself to stop even when it's too much even in their own opinion, a good counselor who understands obsessive-compulsive would probably be a big help.
Definitely you need counseling, it sounds like it is ruining your life. When you look for a counselor, ask for help with OCD issues.