Police who raided a Tory MP's office in Parliament failed to follow proper procedure, the Commons has heard.