Comparison of depth-averaged and 3D models for dense granular flows