Legal fees outstripped by bankers’ earnings on public takeovers