New research suggests working-class voters who previously backed the two parties have abandoned them.