Computational model of normal and cancer cell collective mechanics and migration