Hamas said in a statement on Monday that it had accepted a Gaza ceasefire proposal from Egypt and Qatar.