Philippine militants sought July deal to end Marawi conflict, intermediaries say