Legal costs for the U.K. government's HS2 rail project have hit record levels in the past year, with a handful of top firms cashing in on the mandates.