US food group HJ Heinz has confirmed that it is to close its HP Sauce factory in Birmingham.