At least 18 people were left dead after a bus carrying students plunged into a ravine in the interior of Brazil's Sao Paulo state.