Cardiff Blues and Wales international hooker Matthew Rees is to undergo testicular surgery and will have "an enforced spell away from rugby".