Private detectives were hired to track the Swiss bank’s former head of wealth management.