Sophie Turner and Joe Jonas reach temporary child custody agreement amid legal battle