The European Union has agreed to resume political contacts "at all levels" with Thailand, more than three years after suspending them in protest of the military coup in Bangkok.