US President Joe Biden has told Israeli Prime Minister Benjamin Netanyahu not to carry out an attack on Rafah without a plan to keep civilians safe.