Romanian President Klaus Iohannis has announced his resignation amid mounting pressure from populist opposition groups.