The US is the most expensive place to study law, a study has found, while Germany, China and Sweden are among the cheapest.