Accessible digital tool recording writing speed and number of strokes in complex handwriting tasks could aid diagnosis of cognitive decline, study shows