A nonlocal diffusion problem on manifolds