A periodic intermittent model for the wall region of a turbulent boundary layer