Effect of dephasing on charge-counting statistics in chaotic cavities