Modelling the emergence of phenotypic heterogeneity in vascularised tumours