Dynamic latent variable models for the analysis of cognitive abilities in the elderly population