General convergence results for stochastic approximations via weak convergence theory