A macroscopic traffic model with phase transitions and local point constraints on the flow