Hogan Lovells has been awarded a £3 million government contract to provide legal services to HM Treasury during and after the Brexit process.