US president says cease-fire deal is 'in hands of' Hamas