Overparameterization Improves Robustness to Covariate Shift in High Dimensions