Robust stochastic optimization with the proximal point method