Democrats have previously relied on big margins among voters of colour to offset the party’s falling popularity with white working-class Americans. But this election revealed a problem.