Social network Facebook has taken another hit after both founders of its photo-sharing app, Instagram, announced their resignations and plans to leave the company within weeks.