The New York and NASDAQ stock exchanges ranked 2nd and 3rd, raising a total of $20.3 billion and $19.2 billion respectively, a KPMG report found.