Stochastic Approximation Approach to Federated Machine Learning