The statistical particles-in-cells method for solving rarefied gas dynamics problems