Robust Model Selection via Weighted Cross-Validation