Diagnosis and treatment of bacterial prostatitis