The occurrence of planets and other substellar bodies around white dwarfs using K2