A needlet-based approach to the shower-mode data analysis in the ARGO-YBJ experiment