Latent variable models for hippocampal sequence analysis