Drinking 3 or more cups of coffee can trigger migraines, study says