The average S&P 500 stock had a tough go of it in December. But better times could lie ahead in 2025.