So these men who are hitting on you know both you and your DH? And they send you inappropriate texts, or accost you when you are going to the toilet in the pub etc?
OP, these men are NOT your friends. Seriously they are not. They are not your DH's friends either. They are predators.
And it's not like they are "falling in love" with you and can't help but express their desire to you - they are hoping for a bit of off the record/illicit sex with you. They clearly see some vulnerability in you and hope to exploit that.
So sorry to hear about your abuse - I think more knowledgeable posters have covered this well upthread, and I too think it could be connected.
To reiterate, these men who follow you to the loo and send brazen texts are neither your friend or your DH's friend. Would you consider a female mutual 'friend' who hit on your DH, send filthy texts to DH and followed him to the loo to be either your friend or your DH's? No of course not.
Moving forward, I would consider not hanging out with these people any more. If you do continue, I think you need to rebutt any further advances with very clear and direct statements - "Your text/advances are offensive and inappropriate. DH finds them so too. They are unwelcome. If you approach me in such a way again, our friendship with you will be over."
I suggest mentioning your DH as they may be shocked to hear that you tell him, and it is good to let them know you are not alone & you and your DH are a solid team. You also might find these "friends" just aren't so friendly once you give them a very clear message you are unavailable.