A study found people were happier after briefly chatting with a barista while ordering coffee compared to ordering impersonally