Yvette Cooper has defended the arrest of more than 500 people for holding signs supporting Palestine Action.