Gold rose toward a record high as an escalating conflict between Israel and Iran drove investors toward haven assets.