18 month old FIGHTING šŸ¤Æ

My daughter is 18 months. Sheā€™s funny, goofy, happy and SUPER smart but thereā€™s one problem she has. She likes to FIGHT. She slaps, pushes and pulls the hair of other kids her age. Most of the time itā€™s not even over a toy or anything she just does it randomly. This behavior started very recently and Iā€™ve been saying I donā€™t know where she gets it from but I remember that her father has hit me in front of her a few times when she was younger (I left him for good last August). She was very young when she saw these things but Iā€™m wondering if she still remembers it and if thatā€™s causing it? Anyway how can I get her to stop? It makes me very sad Bc sheā€™s Otherwise a very sweet baby. . Iā€™ve tried popping her hand, time out, taking away snacks and early bed times and nothing seems to be working. Iā€™ve even talked to her and tried to explain ā€œhugs, not hitsā€ and that still didnā€™t work lol. I havenā€™t seen other kids her age act like this so I donā€™t think itā€™s normal behavior. Pls help me šŸ˜­šŸ˜­