Last-minute negotiations have delayed a UN vote on a draft resolution calling for a ceasefire in Gaza.