India pacer Mohammed Shami retires from Tests, says he will keep playing white-ball cricket.