Sewage poured into England's bathing sites for more than 2,000 hours this summer, figures suggest.