Unless the other children are complaining, I wouldn’t do anything about it. They may not like to be hugged, but I doubt they mind her copying what they are doing. That sort of imitation in play is very characteristic of 4-year-old children. It is called “parallel play,” meaning that the children don’t truly play together but instead do similar or identical things alongside one another. If your daughter has friends in the group, they will join her activities (it isn’t really accurate to call it copying) as often as she gets into a parallel play routine with them.
I would talk to her teacher about both behaviors that concern you, first about the hugging. Ask her if she has noticed it, if she feels the other children object, etc. If she feels that it isn’t a problem, I wouldn’t do or say anything. If she thinks it is excessive and that the other children don’t like it, then both of you will want to say frequently something like, “Show Kevin you like him by smiling at him.” In other words, help her to develop more acceptable ways of showing her appreciation for her friends. In order to help eliminate the copying, ask her teacher to make special suggestions to your daughter of things to do that will make her less dependent on what the other children are doing.
Our parenting advice is given as suggestions only. We recommend you also consult your healthcare provider, and urge you to contact them immediately if your question is urgent or about a medical condition.