A theory of exciton dynamics with a percolation threshold