Läckt EU-lagförslag kräver bättre säkerhet i uppkopplade prylar