Decoherence of quantum registers