Development of stock markets, societal norms and legal institutions