A search for transiting planets in the $β$ Pictoris system