UBS swung to a wider-than-expected net loss in the third quarter, as Credit Suisse integration-related expenses weighed.