HJ Heinz said it will continue to invest "aggressively" in emerging markets as it eyes possible M&A opportunities.