Model of theta frequency perturbations and contextual fear memory