Long-term memory-induced synchronisation can impair collective performance in congested systems