Multicellular behaviour enables cooperation in microbial cell aggregates