Gold finish a week with an unexpected rally