A depth‐averaged two‐phase model for debris flows over erodible beds