The surprising resilience of the US economy this year is masking underlying weakness among low- and middle-income households, as higher-income Americans continue to drive growth.