On the dynamics of mud deposits in coastal areas