The fact that you went to the prostitutes is no problem at all.
The fact that you view yourself negatively about it is a problem. As was mentioned above, you should forgive yourself and move on.
As was also said above, we all have our skeletons. Any of us could remain so focused on them that we become paralyzed in our daily lives. Self forgiveness is the key to moving on.