Collective decoherence of cold atoms coupled to a Bose-Einstein condensate