WeWork buys tech firm to track and record movements in workplaces