The origin of confabulations