Bayesian latent structure discovery for large-scale neural recordings