Former Real Madrid coach Carlo Ancelotti has been handed a one-year prison sentence for tax fraud.