Police have been granted new powers to impose conditions on repeat protests to "close a gap in the law", the home secretary has said.