Devastating flash floods and intense monsoon rains have left at least 51 people dead and affected more than one million others across large parts of Bangladesh.