Australian police have defended their actions after violently clashing with protesters during a demonstration against a visit by the Israeli president.