Israel and Hamas claim victory as fragile ceasefire holds