Mary, Gloucester, Herzogin