The binarity of the local white dwarf population