A&O and Freshfields lead as LSE agrees merger with Canadian exchange