Drugmakers say R&D spending hit record in 2017