A new agreement will allow medicines to be delivered to Israeli hostages being held by Hamas in Gaza, says Israeli Prime Minister Benjamin Netanyahu.