Tottenham edge Liverpool in first leg of League Cup semi-final