Distributionally robust weighted k-nearest neighbors