A 20-year-old Bristol student has undergone a heart transplant after months of waiting for a suitable donor organ.