UBS and US reach deal on tax case