A regret theory of capital structure