Former leader of the Scottish National Party Nicola Sturgeon has been cleared by an investigation into the party's finances.