Egypt court rejects Hamas 'terror' lawsuit