At least 35 people have died after a magnitude-7.8 earthquake struck the island of Mindanao in the Philippines.