Cardiff have confirmed they have sold Andreas Cornelius back to FC Copenhagen for an undisclosed fee.