A string of targeted attacks in Edinburgh linked to gang violence has been condemned as "utterly unacceptable" by First Minister John Swinney.