Distributionally Robust Linear and Discrete Optimization with Marginals