A model for daily flows of intermittent streams