The number of practising solicitors in Scotland has reached an all-time high of 11,000, of whom 49% are women and 56% are under 45, the Law Society of Scotland said.