Hi, it is called the urinary tract infection
, due to infection, there is urge to urinate frequently. and some times there may be burning after urination, there also may be pain in the lower abdomen, the latter symptoms may or may not be present.The other causes may be diabetis it shoud be checked. So i advise you to consult a physician for diagnosis and treatment.
Masturbating more than 20 times can accelerate the infection. so be care full ,though not a contraindication, excess is always bad with any thing.