Fundamental measure theory for mixtures of parallel hard cubes. I. General formalism