Hausdorff dimension of the graphs of the classical Weierstrass functions