Free-streaming and coupled dark radiation isocurvature perturbations: constraints and application to the Hubble tension