EU reaches deal on creating new asylum agency