Gold prices have struggled during the Iran war, bucking the metal's reputation as a hedge. UBS analysts say the weakness will be short-lived.