New figures show that the number of people travelling by train continues to increase, with ScotRail recording more than seven million journeys in June.