The UK government has barred Israeli officials from attending the country's biggest arms fair over growing concern about the war in Gaza.