The effect of a time lag in the immune reaction