The Duke and Duchess of Cambridge have paid tribute to "unfalteringly brave" Dame Deborah James following her death from bowel cancer aged 40.