A heatwave sweeping through Bangladesh has led hundreds of garment workers to collapse, according to local media reports.