Aggregate Consumer Behavior and the Measurement of Social Welfare