Americans shelled out $104.7 billion on lottery tickets in 2024, a record high. But is playing the lottery a good investment?