Mixture factor model for hierarchical data structure and applications to the italian educational school system