Temporal Predictive Coding For Model-Based Planning In Latent Space