Nicola Sturgeon wasted the unprecedented good fortune she inherited from Alex Salmond in the wake of the independence referendum in 2014 and left her party "severely damaged" and "deeply divided", according to one of the leading experts on Scottish politics.