Prosecutors at the Hague-based International Criminal Court (ICC) will open a preliminary inquiry into possible war crimes in the Palestinian territories, the first formal step that could lead to charges against officials there and in Israel, the court has said.