This happens to me on occasion, and it's really a pain. I'll be moving along on a project, and then at some point, when recording a new audio track, the new recorded track becomes out of sync with the rest of the project. In my case, the newly recorded track usually jumps ahead one measure. I can see it when recording. While recording, the waveform is aligned correctly with the rest of the project. As soon as I hit stop on the recording, the waveform jump ahead one measure. If I drag it back to the correct position, it will play in sync. It's just a pain.
I think Stickman is correct regarding the reason. It's probably a plugin that's causing the problem. To avoid this, I try to use as few plugins as possible during the tracking/recording phase of my projects.
I'd love to see Cakewalk add a better way to identify these errant plugins. Maybe some kind of latency readout for each plugin, on the FX Bin, or some kind of color coding scheme which shows plugin latency, based on the look ahead reported. At least with this, you could see which plugins in the bins were causing trouble.