Markets were little changed on the final day of a strong month that wiped away steep losses from the beginning of the year.