I understand your feelings with this. I too have had a similar experience, however my wife got pregnant to another male while we were married. I too lost hope and trust in the opposite gender.
I encourage you to take your time with new relationships and be kind to yourself!! It will all work out.