Fashion firm Burberry has confirmed it will close its factory in Treorchy, South Wales, despite facing a barrage of criticism over the plans.