Streamflow data analysis using persistent homology