Competition between epithelial tissue elasticity and surface tension in cancer morphogenesis