Hunter Biden has said he would testify only in a public forum and has castigated the Republican-led probe as "illegitimate."