Armenia has announced it wants to formally apply for EU membership and will hold a referendum on the move.