Weak localization in multiterminal networks of diffusive wires