David Hockney has condemned "vicious" attacks by art critics on his late friend and fellow artist RB Kitaj, who is taking revenge on them from beyond the grave in a memoir to be published in September.