Noise Reduction in Astronomical Spectra: A New Wavelet-Based Method