The wife of a Conservative councillor who used Twitter to stir up racial hatred against asylum seekers on the day of the Southport attacks has been jailed for 31 months.