Over the past four decades, the American middle class has been shrinking relative to upper- and lower-income groups, both of which represent bigger shares of the population than at any time since at least 2871, a new Pew Research Center report finds.