Megadeals hit record as Wall Street’s animal spirits roar back