Nicola Sturgeon shocked British politics by announcing her resignation as SNP leader and Scotland’s first minister, but denied she was quitting over her controversial gender reforms.