Palm extends losses to hit 5-month low on weak demand