Three councillors have left the party after ITV obtained covert recordings of them expressing offensive views.