Flooding has caused travel disruption across Scotland after heavy rain in many parts of the country. Several rail services were cancelled and sections of the M9 and the M74 motorways have been closed.