Israeli forces have encircled Rafah in southern Gaza ahead of a ground operation amid warnings of a humanitarian catastrophe.