Replication slippage and the dynamics of the immune response in malaria: a formal model for immunity