how is sand that flows in a river formed