Modi resigns