Kraft Heinz Co. has reported a drop in profits and sales for the third quarter despite cost-cutting measures.