On the origin of alluvial and diluvial formations