Privacy-Preserving Electronic Healthcare with Self-Monitoring Devices using Trusted Execution Environments