Vương tử Frederick, Công tước xứ York và Albany