The monarch will attend the State Opening of Parliament, a month after the death of her husband.