Might I suggest a quick open palm to the base of the nose, that usually stops the mashers, or a knee square in the balls works everytime. Of course if I was a chick, maybe I would do this anyway I think it would scare the shit out of them, grab the guys balls and tell him you just wanted to check them out, squeeze hard. Ive had people come up to me and ask if they can see my tattoos because I have ones on my arms that are quite visible, so I start by taken my pants down, they usually ask me to stop before I get 2 far. I guess people are 2 embarrassed in public for that sort of thing. I personally have no shame and dont give a afuck what anybody thinks, but the response you gave to this guy was excellent I will have to remember that one.
On a note similar to what you are saying, I was at a grocery store with my daughter she was about 3, she was sitting in the cart and I was waiting to pay the bill when I notice the old guy bagging groceries is touching my daughter, now I dont mean in an inappropriate way but, I almost leaped the cart and shoved the guy back and told him "Dont fuckin' touch her" he was very visibly upset and everyone kind of stopped and looked. I could tell the cashier,an older woman, wanted to say something but I gave her the "I will kill you without hesitation or remorse look" and she didnt say a word. Maybe I overeact when it comes to my kids but I grew up street smart and my motto is to "Trust No One" there are predators around every corner, be one of the sheep or be the sheepdog and chase off the wolves.