A four-storey textiles factory in Bangladesh's capital, Dhaka, has collapsed, killing at least 16 people and injuring 50.