Constraints on primordial non-Gaussianity from a needlet analysis of the WMAP-5 data