The prime minister has said he was shocked and concerned by allegations that a BBC presenter paid a young person for explicit pictures, and said the government had been reassured by the BBC that the matter would be investigated "swiftly and rigorously".