NSW man detained over quarantine breaches