Gold settles higher, extends rally to a fifth day in a row