Trapping of solid particles at a wall in a turbulent flow