The University of Cambridge has lost a High Court bid to block Israel and Palestine-related protests on its some of its sites for five years.