Without sounding too alarmist, if this mood change is out of character, it could be a sign of depression or early stage dementia. If it's got to the stage of not wanting friends around because of his rudeness, I'd be inclined to seek some professional guidance.
Gary Glitter programme Tuesday