US President Joe Biden has warned that it would be “tough” to secure a ceasefire between Israel and Hamas by Ramadan.