Collective motion of cells crawling on a substrate: roles of cell shape and contact inhibition