Research suggests it may take anywhere from 18 to 254 days to change your habits. Here's how to break a habit successfully.