The tangent complex and Hochschild cohomology of $\mathcal {E}_n$-rings