Distributionally Robust Optimization Under Moment Uncertainty with Application to Data-Driven Problems