The holomorphic anomaly of topological strings