Ambulatory monitoring for prediction of cardiac and cerebral events