Research finds a quarter of people voted for different party than one they supported month before election