PepsiCo has confirmed it is to close its manufacturing site in Peterlee in the north of England by the end of the year, with the loss of all 380 jobs.