A drug driver who repeatedly hit another vehicle while trying to parallel park his car in Greenock has been banned from the roads for two years.