Amazon slumps, comes close to losing spot in trillion-dollar company club as tech selloff worsens