Gold rose for a fifth day, as escalating conflict in the Middle East upended global energy markets and drove investors to safer assets.