UBS’s wealth management division has attracted wealthy foreign clients, due in part to strong Swiss secrecy laws.