Former footballer and manager Joey Barton has been charged with two counts of alleged malicious communications.