Cuba and US agree on resuming scheduled flights