Measurements of the semileptonic decays B¯→Dℓν¯ and B¯→D*ℓν¯ using a global fit to DXℓν¯ final states