QCD sum-rule prediction for the hadronic contributions to the anomalous magnetic moment of the tau