Without investment in trainee solicitors who can work on legal aid, the sector will 'fall over', the Scottish Tories have warned.