ScotRail has warned trains may be cancelled or delayed.