Queen Elizabeth II has attended church near her rural Sandringham estate, after missing the previous two Sundays due to ill health.