Decoherence of cold atomic gases in magnetic microtraps