Hochschild Cohomology and Periodicity of Tame Weakly Symmetric Algebras