Evolution of white dwarfs as a probe of theories of gravitation: the case of Brans—Dicke