Gold prices cut losses, but still finish at a more than 5-month low