Gold ends at a more than 1-week low, but notches slight monthly gain