May vows to quit before next UK election