Needlet analysis of spherical random fields