Characterization of quantum phase transition in the XY model with multipartite correlations and Bell-type inequalities