Randomized Algorithms for Distributed Nonlinear Optimization Under Sparsity Constraints