Jelena Ostapenko and Taylor Townsend had a heated exchange following their post-match handshake in the second round of the US Open.