Former Brazilian president charged with attempted coup