UN to investigate ‘war crimes’ by Israel and Hamas