I work in a department with a lot of other women, and sometimes we get a bunch of huggers. Or, one encourages the others, I suppose.
I am not a hugger, but I have learned to deal - stand still 'til they're done, try not to tense up, because, they after all, mean no harm, and are trying to be (overly) friendly.
And some, bless their hearts, try to respect that. My favourite was one nice older lady who, when I returned to work after a month of medical misery, came up to me and asked if I would mind if she hugged me.
She was a hugger, and I was so touched that she noticed that I am not that I said "Sure, go ahead". It was nice.

But, yeah, workplace hugging should not be a thing.