Learning from Topology: Cosmological Parameter Estimation from the Large-scale Structure