Hamas has been carrying out public executions of enemies within Gaza as they attempt to wrestle back control after the ceasefire with Israel.