First Minister John Swinney has faced calls in the Scottish Parliament to increase police numbers in Edinburgh amid concerns about a rise in gang violence.