Israel's settlement policy in occupied Palestinian territories is in breach of international law, the International Court of Justice (ICJ) has ruled.