El Salvador president accused of ‘attempted coup’