A number of people have been arrested during clashes where officers used capsicum spray on those protesting the Israeli president’s visit to Sydney.