Companions of blind and partially sighted people will receive free ScotRail train travel under a new pilot scheme.