Demand dynamics with socially evolving preferences