A model for irregular phenomena in urban traffic