AG Barr has announced plans to close its carton production site in Tredegar, Wales, with some job losses expected.