Measurement of R(D) and R(D*) Using Semileptonic Tags and Hadronic τ Decays