Discrete Predictive Representation for Long-Horizon Planning