Hopes of India-US trade talks lift sentiment; Smallcaps outperform midcaps