how does a man get a urinary tract infection treatment