Analysis of 26 barium stars - I. Abundances