Weighted Distributed Differential Privacy ERM: Convex and Non-convex