Egypt court declares Palestinian movement Hamas ‘terrorist’