Evolution of novel material properties and the emergence of group-level heritability in the transition to multicellularity