Gold declines near $4,000 on dollar increase