Variable selection for longitudinal data with high-dimensional covariates and dropouts