Hampshire and Isle of Wight hospitals are urging people to use services appropriately amid a surge in patients.