Host resistance and coevolution in spatially structured populations