Spitzer resigns in wake of prostitution scandal