A mixed ODE-PDE model for vehicular traffic