Swiss bank UBS posts first-quarter profit gain