A Wemyss Bay man has been jailed after class A drugs with an estimated street value of more than £7,000 were discovered in his car.