US food company HJ Heinz has reported a sharp drop in quarterly earnings, hit by higher costs and special items.