Jose Mourinho has agreed a deal to return to Real Madrid as head coach 13 years after his departure, according to reports.