Stochastic SIR with waning immunity