Social percolation and the influence of mass media