Anti-government protesters and riot police in Ukraine have clashed on the sidelines of a rally in defiance of new laws aimed at curbing public protests.