Real Madrid have parted company with Xabi Alonso, by "mutual consent" after a difficult seven months in charge of the Spanish giants.