The Scottish Tories have raised concerns after figures revealed more than a thousand people convicted of a sexual crime in five years had previous convictions.