A multiplicity study of transiting exoplanet host stars. I. High-contrast imaging with VLT/SPHERE