Transfer Learning with Distance Covariance for Random Forest: Error Bounds and an EHR Application