Ukip tops poll in European elections in political ‘earthquake’