The translucent molecular clouds toward HD 154368. I. Extinction, abundances and depletions