The UK Parliament has voted, with a 293-125 majority, against a motion to call for an immediate ceasefire between Israel and Hamas.