Ising model with memory: results and applications to synchronization in population ecology