People enjoy boost in happiness every time they receive text from friend or family member, an academic study has shown.