Poincaré duality in Hochschild (co)homology