Bayern Munich President Uli Hoeness has been sentenced to three and a half years in prison for tax evasion.