Multidirectional wave transformations on decreasing depth: A nonlinear model