Use of generics would save money, study finds