Samsung posts Q4 profit despite pandemic challenges