A cycling world championships and major Banksy exhibition helped Glasgow attract more than 25 million visitors in 2023, new analysis has shown.