A continuous latent factor model for non-ignorable missing data in longitudinal studies