On tame weakly symmetric algebras having only periodic modules