A 15-year-old boy accused of killing an elderly man has told so many lies he has "difficulty keeping track", a murder trial has heard.