A multiphase model of tumour segregation in situ by a heterogeneous extracellular matrix