A critical stress model for cell motility