President Catherine Connolly has used a speech to University of Galway graduates to criticise the college over its ties to Israel.