Japan's Hitachi Metals Ltd has signed an agreement with US private equity firm KPS Capital Partners to buy Waupaca Foundry for USD 1.3 billion.