UBS posts first quarterly loss since 2017 on costs of Credit Suisse deal