The Density Distribution Of Accreting Cosmic Filaments As Shaped By Small-Scale Processes Of Radiative Cooling And Hydrodynamic Instabilities