The UK will continue to trade arms with Israel during its war in Gaza despite a ceasefire in Lebanon, Keir Starmer has said.