UBS has hired Barbara Levi as its new group general counsel, the Swiss investment bank has announced.