A long-term study gives a clear answer: as a rule, the relationship was already going downhill before the partner cheated.