Energy minimizing states in adhesion problems for elastic rods