The Duke of Edinburgh has joined the Queen and the Royal family at Sandringham after spending four days at Papworth Hospital following a heart scare.