UBS booked a record $29 billion net profit last quarter after it integrated Credit Suisse into its books.