Humza Yousaf’s decision to end the SNP’s powersharing deal with the Scottish Greens was “catastrophic”, former first minister Nicola Sturgeon has said.