The royal family and dignitaries from around the world paid their final respects to Queen Elizabeth II at her state funeral.