The carrying and consumption of alcohol has been prohibited on ScotRail trains and in stations since November 2020.