Facebook will pay a record $5bn fine to settle privacy concerns, the US Federal Trade Commission (FTC) has said.