Turkey has reopened Istanbul's Bosphorus Strait to transiting tankers after shutting it earlier for several hours following an attempted coup.