Most listed pharmaceuticals companies saw their profits swell in 2017, thanks to higher expense on healthcare.