Heinz is to close three plants in North America as the changes at the ketchup giant continue under its new private-equity owners.