Donald J. Trump has renewed his defense of his charitable foundation, insisting on Twitter that all of the money raised by the organization has gone to charity even as the New York attorney general continues to investigate claims to the contrary.