I'm 70 years old. Have had this problem for 20 years.Recently decided to really work on it. I have tried kegel exercises. they helped about 25%, But magnesium really helps. With magnesium I'm about 75% better. I take a little less than 1 tsp of epsom salts in some water. Sip throughout the day. Epsom salts are cheap. That's about 900 mg of magnesium. Careful not to take more or I get loose stools.
It also has sulfur which is good for you. My nails are growing much better.