Nepal President resigns after PM