Burberry swings back to profit after cost-cutting regime