Swearing is OK, most people swear, some more than others. The trick is to understand when and where it is not acceptable. I wouldn't swear at work or in a church, but I would certainly swear if I accidentally dropped something on my foot!
I have known people who swear in nearly every sentence they speak. The answer to your question is to ask yourself why do you swear a lot. Is it simply a habit you would like to break or are you trying to express something about yourself? The person I knew who swore in every sentence was from London and was trying to project an image of being a bit streetwise and confident. Unfortunately, it became a habit and when we went out somewhere that was quite respectable, his wife and friends found it embarrassing. It was almost as if he had Tourrettes. He was also a bit rebellious and had an attitude of "I will swear where and when I like" with no consideration to others.
In answer to how to get rid of masculine energy.....
Try to balance it out by cultivating a more feminine energy.