Hedging and the regret theory of the competitive firm