Nigel Farage's Ukip has pulled off a stunning double election result by snatching a safe Tory seat to win its first Westminster MP and coming within an ace of ousting Labour from one of its northern strongholds.