Chronic drug shortages that threaten patient care are caused by rock-bottom prices for older generic medicines and a health care marketplace that doesn’t run on the rules of supply and demand, among other factors, according to a federal report published on Tuesday.