Gold prices jumped as the outbreak of war in the Middle East jolted global markets and pushed investors towards traditional safe-haven assets.