ScotRail is considering slashing ticket office opening hours at dozens of stations across the country.