Chris Pratt and Anna Faris have taken to their social media accounts to announce they are "legally separating" after eight years of marriage.