Markets snap losing streak led by IT sector stocks