Perturbations of Banach algebras and amenability