Deal advice has evolved into a huge legal business but leaves firms vulnerable to misuse of confidential information