The fan who confronted Rio Ferdinand at the end of the Manchester derby has been banned from attending football matches for three years.