Distributed Optimal Policies for Multi-Agent Systems under Uncertainties