If it was a private sale there's probably not a lot you can do - the basic rule I apply when buying a car is buyer beware.
If it was a dealer, however, they have a duty to provide you with a road-safe car - which this clearly isn't! That's why I usually go to a dealer, as you have some comeback if the car turns out to be a dud.