Terry cleared of racism against Ferdinand