Effect of resonant magnetic perturbations on low collisionality discharges in MAST and a comparison with ASDEX Upgrade