The easiest way I have found to reproduce this is as follows:
- Put your characters back up against a wall
- Face slightly to the left and hold A / or face slightly to the right and hold D - so that your left/right shoulder is pushing into the wall a bit but you still move along side it.
In my experience this seems to occur more often when holding A and using the characters left shoulder, but it also happens with the right one / holding D.
With that said, this can also happen when walking along side an object using W or S, when either of your shoulders are close to the wall.
During normal gameplay such as looting buildings you will frequently get stuck in place for 1-2 seconds when turning corners/brushing up against objects etc.