Mediators have ramped up efforts in the hope of heading off an Israeli assault on the Gaza city of Rafah.