Mechanical analysis of cortical tension and its interplay with cell adhesion in multicellular aggregates