Analysis of flow channeling near the wall in packed beds