Nifty 50 closes flat in final trading session of 2024 as IT stocks decline