Sigmund Freud had a name for this condition; he termed it "selective amnesia".
Lancey Howard has a name for it, too; "pathological lying".