Methods of prevention of acute and chronic prostatitis