Illegal for police to deny permission to protests planned by political parties: CPI(M)