As the country gets richer it consumes more—and throws away more, too