Distributed Stochastic Optimization via Adaptive SGD