Man arrested allegedly trying to steal a car after 12-hour manhunt