Barcelona have been given a year-long transfer ban by FIFA after breaching the rules on transfers of players under 18.