A Statistical Online Inference Approach in Averaged Stochastic Approximation