Optimal Stochastic and Online Learning with Individual Iterates