Tens of thousands of Scots have begun to pay their respects to the Queen, with some weeping and brushing away their tears after filing past her coffin in Edinburgh.