Markets end day in the red as inflation set to remain elevated