People are putting themselves at risk of dementia with the posture they adopt when using mobile phones and laptops.