Mechanism for slow waves near cutoff frequencies in periodic waveguides