Pets make for the best financial advisers and motivators. They force you to be more mindful about your spending, study shows