Google has walked away from a potential Toronto lease with WeWork after months of negotiations, agreeing to take space from rival co-working firm IWG PLC instead, according to people familiar with the matter.