Gold declines $5.10, or 0.4%, to settle at $1,311.40 an ounce