Donald Trump has raged at the "nasty" world of US politics as the criminal cases against him proceed.