Motorists should 'avoid driving' if they take certain medicines, according to an expert.