Donald Trump abruptly canceled his plans to testify in his defense on Monday in the New York attorney general’s civil fraud case, announcing the decision in a series of social media posts on the eve of his expected return to the Manhattan courtroom.