The modest gains came despite persistent FII selling, which has continued to weigh on market sentiment