New census Bureau income data offer both a warning about Massachusetts’ competitiveness and an explanation of why affordability is a pressing issue even in an affluent state.