Gold futures score best monthly gain since June