Prince Philip heads home after a month in hospital