Wales and British and Irish Lions centre Jamie Roberts has graduated from Cardiff University with a degree in medicine.