Nifty 50 closes flat at 23,985.35; IT stocks lead gains amid geopolitical tensions