Scientists in Brazil have announced the discovery of one of the world's oldest fossils believed to belong to an ancient reptile dating back some 237 million years that could help explain the rise of the dinosaurs.