Israel and Hamas are "very, very close" to reaching a deal to halt the fighting in the Gaza Strip and release hostages, US adviser Jake Sullivan says.