Inference of transcription factor binding from cell-free DNA enables tumor subtype prediction and early detection