Mathematical model reveals how regulating the three phases of T-cell response could counteract immune evasion