Production under uncertainty: a characterization of welfare enhancing and optimal price caps