Google has sacked 48 employees, including 13 senior managers, over harassment allegations which emerged over the last two years.