A motorist has been banned for seven years after being caught three times in as many months under the influence of cocaine.