Domain Branching in Uniaxial Ferromagnets: A Scaling Law for the Minimum Energy