In his memoir, “What Have We Here?,” the actor writes about his friendships with Hollywood icons and literary lions.