Around 7,000 members of a teachers union have been hit by a data breach following the loss of personal details on a laptop and USB stick.