Former Scottish first minister Nicola Sturgeon has spoken of her “sense of relief” after announcing she plans to step down next year.