Millions of people across Scotland gathered near television screens as Queen Elizabeth was laid to rest in England.