Schneider Electric has agreed its largest ever acquisition, buying US software firm PTC for about $22.6bn, but its shares fell nearly 10%…