Newborn magnetars as sources of gravitational radiation: constraints from high energy observations of magnetar candidates