The A74 (M) motorway has reopened in southern Scotland after being closed by "multiple collisions" due to icy conditions.