Diagnosing and treating prostatitis