Distributed Data-Driven Decision Making in Uncertain Networked Systems with Applications in Smart Energy Systems