Rainbow triangles in families of triangles