Nepal’s first woman PM quits after leading the riot-hit country to election