Distributionally Robust Optimization and Generalization in Kernel Methods