Supersymmetric deformations of maximally supersymmetric gauge theories