Generalized Gibbs ensemble and the statistics of KdV charges in 2D CFT