gold ends at a 4 1/2-month low as bitcoin soars, u.s. stocks climb