The Queen has told guests at the state visit that her chest infection was a form of pneumonia.