Heavy rainfall has caused floods in Istanbul, inundating roads, underpasses and subway lines and causing havoc in the city.