Habitat complexity, dispersal and metapopulations: Macroscopic study of a predator–prey system