gold rebounds from three-week low to settle higher