Ranking and Selection with Covariates for Personalized Decision Making