The competition watchdog has introduced a price cap on certain rail routes in the North West and Scotland.