Constraints on modified gravity models from white dwarfs