On the divisibility of the class number of quadratic fields