First Minister John Swinney has defended the record of Nicola Sturgeon from attacks by the Scottish Conservative leader.