Patients being treated outside hospitals in Scotland as services 'under extreme pressure'