Some companies are better able to deal with inflation than others – often those that can pass rising costs on to their customers.