Autocorrelation of the susceptible-infected-susceptible process on networks