Fourth installment in Capcom-inspired film franchise takes in $27.7 million; best opening weekend for series to date