Spending has increased for both retail and non-retail drugs