Relative prices and investment: an essay on resource allocation