The company, which had said it struggled to monitor the 400 hours of video uploaded to YouTube every minute, said it would hire significantly more staff and speed up the process of removing ads from hateful and offensive content that attacks people based on their race, religion or gender.