Italian pasta maker Barilla has said it will close one of its plants and sell off a mill as it tries to increase efficiency amid weak demand for pasta products.