Identifying latent behavioural states in animal movement with M4, a nonparametric Bayesian method