Time-dependent branching processes: a model of oscillating neuronal avalanches