Decoherence of nuclear spins due to direct dipole-dipole interactions probed by resistively detected nuclear magnetic resonance