Gabon's media regulator has restored access to social media platforms, ending a ban imposed in February that critics called an abuse of power.