Clastic rocks are formed due to