Twisted fracton models in three dimensions