HMRC chief was partner at law firm that acted for Cameron