Welcome to HCM.
Urgency and frequent urination
may be due to urinary tract infection
or may be due to Diabetes Mallitus. Chronic prostatitis
is not common in masturbation alone unless there is heterosexual or homosexual exposure.
If you could contact with the urine routine examination and blood sugar results I may be able to tell better. Due to anxiety also one can have such symptoms.
If it is confirmed chronic prostatitis, then a culture and sensitivity test from prostatic fluid or semen will help you to get relieved with appropriate antibiotics.
will guide you better.